<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
  <meta http-equiv="expires" content="Fri, 26 Dec 2003 19:13:00 +0100" />
  <meta name="language" content="en" />
  <meta name="robots" content="index,follow" />
  <meta name="revisit-after" content="7 days" />
  <meta name="author" content="Dominique Stender, Paul Sullivan" />
  <meta name="date" content="2003-11-26T18:13:00+01:00?" />
  <meta name="description" content="Documentation for the CPAINT AJAX toolkit" />
  <meta name="keywords" content="AJAX, CPAINT, Asynchronous JavaScript and XML, XML, JavaScript, PHP, ASP, .NET, Perl" />
  <title>CPAINT documentation :: proxy</title>
  <link rel="stylesheet" href="cpaint.css" media="screen" />
  <link rel="stylesheet" href="cpaint.print.css" media="print" />
  <script type="text/javascript" src="js/menu.js"></script>
  <style type="text/css">
<!--
.menu1 {font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	text-decoration: none;
	font-weight:  bold;
}
-->
  </style>
</head>
<body>
  <p align="right">
    <br />
    <a href="http://sf.net/projects/cpaint/">
      <img src="gfx/css_logo.gif" alt="" border="0" height="51" width="182" alt=""  />
    </a>
  </p>
  <h1>CPAINT :: Cross-Platform Asynchronous INterface Toolkit</h1>
<div id="menu">
    <h2>Contents</h2>
    <p>
      <script type="text/javascript">
      <!--
        generate_menu();
      //-->
      </script>
    </p>
    <br /><br /><br />
  <p>
    <img src="gfx/xhtml10.gif" alt="" border="0" height="15" width="80" /><br />
    <img src="gfx/css.gif" alt="" border="0" height="15" width="80" /><br />
    <a href="http://www.monorom.to/" target="_blank"><img src="gfx/monorom.gif" alt="monorom" border="0" height="15" width="80" /></a><br />
  <a rel="license" href="http://creativecommons.org/licenses/by/1.0/" target="_blank"><img src="gfx/cc.gif" alt="Creative Commons License" border="0" height="15" width="80" /></a></p>
  <p><br />
    <a href="http://creativecommons.org/licenses/by/1.0/" target="_blank" class="menu" rel="license">Project Services By <br />
    </a><a href="http://sourceforge.net/" target="_blank" class="menu1"><img src="http://sourceforge.net/sflogo.php?group_id=141041&amp;type=2" width="125" height="37" border="0" alt="SourceForge.net Logo"/></a></p>
</div>
  
  <div id="content">
    <h2> Proxy Utility </h2>
	    <div id="summary">
      <h3>Also see </h3>
      <p><a href="backend.proxy.security.html">security</a> <br />
        <a href="backend.proxy.considerations.html">considerations</a><br />
        <a href="backend.proxy.enhanced-usage.html">enhanced usage</a><br />
      </p>
      </div>
    <p>cpaint proxy script</p>
    <h3>Author(s)</h3>
    <p>
      &raquo; Paul Sullivan &lt;<a href="mailto:wiley14|at|gmail.com" style="font-weight: normal;">wiley14|at|gmail.com</a>&gt;<br />
      &raquo; Dominique Stender &lt;<a href="mailto:dstender|at|st-webdevelopment.de" style="font-weight: normal;">dstender|at|st-webdevelopment.de</a>&gt;
    </p>
    <h3>Information Tags</h3>
    <p>
      &raquo; <strong>Version:</strong> 2.0.2<br /> 
      &raquo; <strong>Copyright:</strong> Copyright (c) 2005-2006 Paul Sullivan, Dominique Stender - <a href="http://sf.net/projects/cpaint">http://sf.net/projects/cpaint</a><br />
      &raquo; <strong>License:</strong> released under the terms of the <a href="license.gpl.html">GPL</a>.<br />
    </p>
    <h3>Description</h3>
    <p>
      Modern browsers prevent JavaScript to do HTTP requests to remote servers. Only the server where the
      JavaScript itself and the embedding webpage come from can be queried.
    </p>
    <p>
      While this is good for security - think cross-site scripting - we think this is limiting.
    </p>
    <p>
      That's why CPAINT comes with proxy scripts on the backend - one script for each language supported by CPAINT. 
      What a proxy script does is to act as HTTP proxy for the CPAINT frontend.
    </p>
    <p>The proxy script takes the arguments passed to it by the frontend <a href="frontend.class.cpaint.call.html" class="code">call()</a> method
      and forwards them to a remote URL. 
      The response from the remote URL will then be forwarded back to the CPAINT frontend.
    </p>
    <p>
      <strong>Please note</strong> that you should be extra careful not to open the doors for cross-site scripting with this.
</p>
    <p><em><strong>Note: </strong>Starting in v2.0.2, the proxy utility has been secured. Please see the <a href="backend.proxy.security.html">security</a> page for additional information. </em></p>
  </div>
</body>
</html>
